import request from '@/utils/request'

// 查询参数信息列表
export function listCommandParams(query) {
  return request({
    url: '/device/params/list',
    method: 'get',
    params: query
  })
}

// 查询参数信息详细
export function getCommandParams(paramsId) {
  return request({
    url: '/device/params/' + paramsId,
    method: 'get'
  })
}

// 新增参数信息
export function addCommandParams(data) {
  return request({
    url: '/device/params',
    method: 'post',
    data: data
  })
}

// 修改参数信息
export function updateCommandParams(data) {
  return request({
    url: '/device/params',
    method: 'put',
    data: data
  })
}

// 删除参数信息
export function delCommandParams(paramsId) {
  return request({
    url: '/device/params/' + paramsId,
    method: 'delete'
  })
}
